import VueRouter from 'vue-router'
import Vue from 'vue'
import loginView from "@/views/login/loginIndex";
import mapView from "@/views/mapView/mapView";
Vue.use(VueRouter)

const routes = [
    {
        path:'/',
        redirect:'/login'
    },
    {
        path:"/login",
        component: loginView
    },
    {
        path:'/mapView',
        component: mapView
    }
]

const router = new VueRouter({
    routes
})

export default router
